package com.go.where.family.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.go.where.family.dao.CustomerAddressDao;
import com.go.where.family.pojo.CustomerAddressInfo;
import com.go.where.family.service.CustomerAddressService;

@Service("customerAddressService")
public class CustomerAddressServiceImpl implements CustomerAddressService {

	@Resource(name = "customerAddressDao")
	private CustomerAddressDao customerAddressDao;

	@Override
	public CustomerAddressInfo queryByPrimartKey(String id) {
		CustomerAddressInfo cai = new CustomerAddressInfo();
		cai.setId(id);
		return customerAddressDao.queryByPrimaryKey(cai);
	}

	@Override
	public List<CustomerAddressInfo> queryList(Map<String, Object> map) {
		return customerAddressDao.queryT(map);
	}

	@Override
	public int save(CustomerAddressInfo customerAddressInfo) {
		return customerAddressDao.insert(customerAddressInfo);
	}

	

}
